package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CommonUploadsMapper;
import com.ruoyi.system.domain.CommonUploads;
import com.ruoyi.system.service.ICommonUploadsService;

/**
 * 公共上传Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-20
 */
@Service
public class CommonUploadsServiceImpl implements ICommonUploadsService 
{
    @Autowired
    private CommonUploadsMapper commonUploadsMapper;

    /**
     * 查询公共上传
     * 
     * @param id 公共上传主键
     * @return 公共上传
     */
    @Override
    public CommonUploads selectCommonUploadsById(String id)
    {
        return commonUploadsMapper.selectCommonUploadsById(id);
    }

    /**
     * 查询公共上传列表
     * 
     * @param commonUploads 公共上传
     * @return 公共上传
     */
    @Override
    public List<CommonUploads> selectCommonUploadsList(CommonUploads commonUploads)
    {
        return commonUploadsMapper.selectCommonUploadsList(commonUploads);
    }

    /**
     * 新增公共上传
     * 
     * @param commonUploads 公共上传
     * @return 结果
     */
    @Override
    public int insertCommonUploads(CommonUploads commonUploads)
    {
        return commonUploadsMapper.insertCommonUploads(commonUploads);
    }

    /**
     * 修改公共上传
     * 
     * @param commonUploads 公共上传
     * @return 结果
     */
    @Override
    public int updateCommonUploads(CommonUploads commonUploads)
    {
        return commonUploadsMapper.updateCommonUploads(commonUploads);
    }

    /**
     * 批量删除公共上传
     * 
     * @param ids 需要删除的公共上传主键
     * @return 结果
     */
    @Override
    public int deleteCommonUploadsByIds(String[] ids)
    {
        return commonUploadsMapper.deleteCommonUploadsByIds(ids);
    }

    /**
     * 删除公共上传信息
     * 
     * @param id 公共上传主键
     * @return 结果
     */
    @Override
    public int deleteCommonUploadsById(String id)
    {
        return commonUploadsMapper.deleteCommonUploadsById(id);
    }
}
